package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "news_menunameurl")
public class NewsK16MenuItemUrl implements Serializable {
	    private static final long serialVersionUID = 1L;
	    @Id
	    @Basic(optional = false)
	    @Column(name = "menuname")
	    private String itemname;
	    @Column(name = "menuurl")
	    private String url;
	    
	    public NewsK16MenuItemUrl(){
	    	
	    }
	   
		public String getItemname() {
			return itemname;
		}

		public void setItemname(String itemname) {
			this.itemname = itemname;
		}

		public String getUrl() {
			return url;
		}

		public void setUrl(String url) {
			this.url = url;
		}

		@Override
	    public int hashCode() {
	        int hash = 0;
	        hash += (itemname != null ? itemname.hashCode() : 0);
	        return hash;
	    }

	    @Override
	    public boolean equals(Object object) {
	        if (!(object instanceof NewsK16MenuItemUrl)) {
	            return false;
	        }
	        NewsK16MenuItemUrl other = (NewsK16MenuItemUrl) object;
	        if ((this.itemname == null && other.itemname != null) || (this.itemname != null && !this.itemname.equals(other.itemname))) {
	            return false;
	        }
	        return true;
	    }

	    @Override
	    public String toString() {
	        return "com.dp.vo.NewsK16MenuItemUrl[itemname=" + itemname + "]";
	    }

}
